/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/** *****************************************************************************************************
 * \file     Firewall_Mac_Cfg.c                                                                         *
 * \brief    This file contains configuration source for Firewall MAC MCAL driver                       *
 *                                                                                                      *
 * <table>                                                                                              *
 * <tr><th>Date                 <th>Version                                                             *
 * <tr><td>2025-03-25 19:03:22      <td>1.0.0 R                                                         *
 * </table>                                                                                             *
 *******************************************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif

#include "Firewall_Mac_Cfg.h"
#include "Platform_Types.h"
#include "Compiler.h"

#define FIREWALL_START_SEC_CONST_UNSPECIFIED
#include "Firewall_MemMap.h"

/********************************************************************************************************
 *                                  Private Constant Definitions                                        *
 *******************************************************************************************************/
/** \brief The masters assigned to UNLOCK domain. */
static const uint8 domain_unlock_set[] = {FIREWALL_MASTER_ID_DPE, FIREWALL_MASTER_ID_ENET1, FIREWALL_MASTER_ID_ENET2, FIREWALL_MASTER_ID_SEIP, FIREWALL_MASTER_ID_PTB, \
										FIREWALL_MASTER_ID_CSSYS, FIREWALL_MASTER_MAXNUM};
/** \brief The masters assigned to LOCK domain. */
static const uint8 domain_lock_set[] = {FIREWALL_MASTER_ID_SEHC, FIREWALL_MASTER_MAXNUM};
/** \brief The masters assigned to CR5 LP domain. */
static const uint8 domain_cr5_lp_set[] = {FIREWALL_MASTER_ID_CR5_LP, FIREWALL_MASTER_MAXNUM};
/** \brief The masters assigned to CR5 SE domain. */
static const uint8 domain_cr5_se_set[] = {FIREWALL_MASTER_ID_CR5_SE, FIREWALL_MASTER_MAXNUM};
/** \brief The masters assigned to DMA domain. */
static const uint8 domain_dma_set[] = {FIREWALL_MASTER_ID_DMA_0, FIREWALL_MASTER_ID_DMA_1, FIREWALL_MASTER_ID_DMA_2,    \
										FIREWALL_MASTER_ID_DMA_3, FIREWALL_MASTER_ID_DMA_4, FIREWALL_MASTER_ID_DMA_5,   \
										FIREWALL_MASTER_ID_DMA_6, FIREWALL_MASTER_ID_DMA_7, FIREWALL_MASTER_ID_DMA_8,   \
										FIREWALL_MASTER_ID_DMA_9, FIREWALL_MASTER_ID_DMA_10, FIREWALL_MASTER_ID_DMA_11, \
										FIREWALL_MASTER_ID_DMA_12, FIREWALL_MASTER_ID_DMA_13, FIREWALL_MASTER_ID_DMA_14,\
										FIREWALL_MASTER_ID_DMA_15,  FIREWALL_MASTER_MAXNUM};
/** \brief The masters assigned to CR52P0 domain. */
static const uint8 domain_cr52_core_0_set[] = {FIREWALL_MASTER_ID_CR52_CORE_0, FIREWALL_MASTER_MAXNUM};
/** \brief The masters assigned to CR52P1 domain. */
static const uint8 domain_cr52_core_1_set[] = {FIREWALL_MASTER_ID_CR52_CORE_1, FIREWALL_MASTER_MAXNUM};
/** \brief The masters assigned to CR52P2 domain. */
static const uint8 domain_cr52_core_2_set[] = {FIREWALL_MASTER_ID_CR52_CORE_2, FIREWALL_MASTER_MAXNUM};
/** \brief The masters assigned to CR52P3 domain. */
static const uint8 domain_cr52_core_3_set[] = {FIREWALL_MASTER_ID_CR52_CORE_3, FIREWALL_MASTER_MAXNUM};

/********************************************************************************************************
 *                                  Global Constant Declarations                                        *
 *******************************************************************************************************/
/*PRQA S 1531 4*/
/** \brief The configuration of the firewall mac module.
 * Traceability: SWSR_FIREWALL_004 SWSR_FIREWALL_005
 */
const Firewall_MacConfigType Firewall_MacDomainMasterMap[FIREWALL_DOMAIN_MAXNUM] =
{
    domain_unlock_set, domain_lock_set, domain_cr5_lp_set, domain_cr5_se_set, NULL, NULL, NULL, domain_dma_set, NULL, NULL, NULL, NULL, \
	domain_cr52_core_3_set, domain_cr52_core_2_set, domain_cr52_core_1_set, domain_cr52_core_0_set
};

#define FIREWALL_STOP_SEC_CONST_UNSPECIFIED
#include "Firewall_MemMap.h"

#ifdef __cplusplus
}
#endif
/* End of file */
